package com.glela.goods.model;

public class GoodsCommission {
    private long id;

    private long goodId;

    private int roleId ;
    
    private int commission ;
    
    private int indirectCommission ;
    
    private int openStoreCommission ;
    
    private int commissionType ;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getGoodId() {
		return goodId;
	}

	public void setGoodId(long goodId) {
		this.goodId = goodId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getCommission() {
		return commission;
	}

	public void setCommission(int commission) {
		this.commission = commission;
	}

	public int getIndirectCommission() {
		return indirectCommission;
	}

	public void setIndirectCommission(int indirectCommission) {
		this.indirectCommission = indirectCommission;
	}

	public int getOpenStoreCommission() {
		return openStoreCommission;
	}

	public void setOpenStoreCommission(int openStoreCommission) {
		this.openStoreCommission = openStoreCommission;
	}

	public int getCommissionType() {
		return commissionType;
	}

	public void setCommissionType(int commissionType) {
		this.commissionType = commissionType;
	}

	public void setLimitTimeSalegoodsCommission( LimitTimeSaleGoodsCommission limitTimeSaleGoodsCommission) {
		this.goodId=limitTimeSaleGoodsCommission.getGoodId();
		this.roleId=limitTimeSaleGoodsCommission.getRoleId();
		this.commission=limitTimeSaleGoodsCommission.getCommission(); 
		this.indirectCommission=limitTimeSaleGoodsCommission.getIndirectCommission(); 
		this.commissionType=limitTimeSaleGoodsCommission.getCommissionType();
	}

	public String toString() {
		return "GoodsCommission [id=" + id + ", goodId=" + goodId + ", roleId="
				+ roleId + ", commission=" + commission
				+ ", indirectCommission=" + indirectCommission
				+ ", openStoreCommission=" + openStoreCommission
				+ ", commissionType=" + commissionType + "]";
	}
}